<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../../../print.css" type="text/css" media="print">
<meta content="GoogleFeeds,be.boulevart.google.api.feeds.GoogleFeeds,findFeed,getFeed,lookupFeed" name="keywords">
<title>be.boulevart.google.api.feeds.GoogleFeeds</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'GoogleFeeds - 'Google AS3 API Library'';
				var baseRef = '../../../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../../all-classes.html')" href="../../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../../all-classes.html')" href="../../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../../index-list.html')" href="../../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../../index.html?be/boulevart/google/api/feeds/GoogleFeeds.html&amp;be/boulevart/google/api/feeds/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;GoogleFeeds</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class GoogleFeeds"); titleBar_setSubNav(false,false,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">be.boulevart.google.api.feeds</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class GoogleFeeds</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">GoogleFeeds <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../../../images/inherit-arrow.gif"> flash.events.EventDispatcher</td>
</tr>
</table>
<p></p>
  With the AJAX Feed API, you can find and download any public Atom or RSS feed.
  <p></p>
<br>
<hr>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#findFeed()">findFeed</a>(query:String):void</div>
<div class="summaryTableDescription">
   Find a feed.</div>
</td><td class="summaryTableOwnerCol">GoogleFeeds</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getFeed()">getFeed</a>(feedURL:String, language:String = "", numFeeds:int = -99, scoring:String = ""):void</div>
<div class="summaryTableDescription">
   Downloads this feed from Google's servers<br/>
   Catch result using EventListener <b>GoogleAPIEvent.FEEDS_GET_RESULT</b><br/>
   <br/>GoogleAPIEvent.data contains instance of <b><div class='listing'><pre></pre></div></div>
</td><td class="summaryTableOwnerCol">GoogleFeeds</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#lookupFeed()">lookupFeed</a>(feedURL:String, language:String = ""):void</div>
<div class="summaryTableDescription">
   Will return the associated feed, if it exists, for a given url.</div>
</td><td class="summaryTableOwnerCol">GoogleFeeds</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="findFeed()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">findFeed</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function findFeed(query:String):void</code><p>
   Find a feed. Will return a list of feeds that match the given query.
   Catch result using EventListener <b>GoogleAPIEvent.FEEDS_FIND_RESULT</b><br/>
   <br/>GoogleAPIEvent.data contains instance of <b><div class='listing'><pre>GoogleFeedFindResult</listing version="3.0"></b><br/>
   <br/>Example:<br/>
   <listing version="3.0">
   var googleFeed:GoogleFeeds = new GoogleFeeds();
   googleFeed.findFeed("Adobe");
   googleFeed.addEventListener(GoogleAPIEvent.FEEDS_FIND_RESULT,onFeedFindResult);
   <br/><br/>//catch API errors from Google:
   googleFeed.addEventListener(GoogleAPIErrorEvent.API_ERROR, onApiError);
   </pre></div>
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">query</span>:String</code> &mdash; Keyword(s) to find the feed
   </td>
</tr>
</table>
</div>
<a name="getFeed()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getFeed</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getFeed(feedURL:String, language:String = "", numFeeds:int = -99, scoring:String = ""):void</code><p>
   Downloads this feed from Google's servers<br/>
   Catch result using EventListener <b>GoogleAPIEvent.FEEDS_GET_RESULT</b><br/>
   <br/>GoogleAPIEvent.data contains instance of <b><div class='listing'><pre></pre></div><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">feedURL</span>:String</code> &mdash; The URL of to the feed to load
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">language</span>:String</code> (default = "<code></code>")<code></code> &mdash; This optional argument supplies the host language of the application making the request.<br/>If this argument is not present then the system will choose a value based on the value of the Accept-Language http header.<br/>If this header is not present, a value of <div class='listing'><pre></pre></div></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">numFeeds</span>:int</code> (default = <code>-99</code>)<code></code> &mdash; This optional argument supplies the number of entries to load from the feed specified by feedURL.<br/>A value of -1 indicates the maximum number of entries supported which at the time of this writing is 100.<br/>If this argument is not supplied, a value of 4 is assumed.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">scoring</span>:String</code> (default = "<code></code>")<code></code> &mdash; By default, when a feed is loaded, the API returns a cached copy of the specified feed that is 100% in sync with the feed contents at the time that it was cached. By setting scoring to a value of <b>h</b>, you can instruct the system to return any additional historical entries that it might have in its cache.
   </td>
</tr>
</table>
<br>
<span class="label">Example</span>
<br>Example:
   <div class='listing'><pre>
   var googleFeed:GoogleFeeds = new GoogleFeeds();
   googleFeed.getFeed("http://www.digg.com/rss/index.xml");
   googleFeed.addEventListener(GoogleAPIEvent.FEEDS_GET_RESULT,onFeedResult);
      catch API errors from Google:
   googleFeed.addEventListener(GoogleAPIErrorEvent.API_ERROR, onApiError);
   </pre></div>
   <p></p>
</div>
<a name="lookupFeed()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">lookupFeed</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function lookupFeed(feedURL:String, language:String = ""):void</code><p>
   Will return the associated feed, if it exists, for a given url.
   Catch result using EventListener <b>GoogleAPIEvent.FEEDS_LOOKUP_RESULT</b><br/>
   <br/>GoogleAPIEvent.data contains instance of <b><div class='listing'><pre>GoogleFeedLookupResult</listing version="3.0"></b><br/>
   <br/>Example:<br/>
   <listing version="3.0">
   var googleFeed:GoogleFeeds = new GoogleFeeds();
   googleFeed.lookupFeed("Adobe");
   googleFeed.addEventListener(GoogleAPIEvent.FEEDS_LOOKUP_RESULT,onFeedLookupResult);
   <br/><br/>//catch API errors from Google:
   googleFeed.addEventListener(GoogleAPIErrorEvent.API_ERROR, onApiError);
   </pre></div>
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">feedURL</span>:String</code> &mdash; URL of the feed to lookup
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">language</span>:String</code> (default = "<code></code>")<code></code></td>
</tr>
</table>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
